Action hook 'rest_after_insert_{$this->taxonomy}'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php at line 594

Description

Fires after a single term is completely created or updated via the REST API. The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. Possible hook names include: - `rest_after_insert_category` - `rest_after_insert_post_tag`

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 594
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 699
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php 268
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php 352

Parameters

Type Name Description
WP_Term $term Inserted or updated term object.
WP_REST_Request $request Request object.
bool $creating True when creating a term, false when updating.

PHP Doc

/**
		 * Fires after a single term is completely created or updated via the REST API.
		 *
		 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `rest_after_insert_category`
		 *  - `rest_after_insert_post_tag`
		 *
		 * @since 5.0.0
		 *
		 * @param WP_Term         $term     Inserted or updated term object.
		 * @param WP_REST_Request $request  Request object.
		 * @param bool            $creating True when creating a term, false when updating.
		 */